package com.intel.two.mapper.recordMapper;

import com.intel.two.pojo.record.PurchaseHouseRecord;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface PurchaseHouseRecordMapper {
    List<PurchaseHouseRecord> selectAllRecord(Map<String, Object> params);

    int purchasehouseAdd(PurchaseHouseRecord purchaseHouseRecord);

    @Delete("delete from t_record_purchasehouse where p_id = #{id}")
    int deletePurchasehouse(@Param("id") Integer id);

    int deletePurchasehouseList(Integer[] ids);

    int update(PurchaseHouseRecord purchaseHouseRecord);
}
